const list = [

    {
      type: "selection",
      width: 35,
    },
    {
      key: "index",
      title: "序号",
      sortable: true,
      fixed: "left",
      width: 90,
      align: "center",
      render: (h, { row, index }) => {
        return h("span", index + 1);
      },
    },
    {
      title: "订单编号",
      key: "order_no",
      align: "center",
      width: 150,
    },
    {
      title: "类型",
      key: "order_type",
      align: "center",
      width: 120,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h(
            "Select",
            {
              props: {
                value: String(row.order_type),
                placeholder: "类型",
              },
              on: {
                "on-change": (value) => {
                  row.order_type = value;
                },
              },
            },
            [
              h("Option", {
                props: {
                  value: "0",
                  label: "正常",
                },
              })
            ]
          );
        } else {
          return h("span", row.order_type);
        }
      },
    },
    {
      title: "客户姓名",
      key: "customer_name",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.customer_name,
              placeholder: "客户姓名",
            },
            on: {
              "on-blur": (event) => {
                row.customer_name = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.customer_name);
        }
      },
    },
    {
      title: "客户手机号",
      key: "customer_phone",
      align: "center",
      width: 130,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.customer_phone,
              placeholder: "客户姓名",
            },
            on: {
              "on-blur": (event) => {
                row.customer_phone = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.customer_phone);
        }
      },
    },
    {
      title: "新郎名称",
      key: "groom_name",
      align: "center",
      width: 120,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.groom_name,
              placeholder: "新郎名称",
            },
            on: {
              "on-blur": (event) => {
                row.groom_name = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.groom_name);
        }
      },
    },
    {
      title: "新郎手机号",
      key: "groom_phone",
      align: "center",
      width: 130,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.groom_phone,
              placeholder: "新郎手机号",
            },
            on: {
              "on-blur": (event) => {
                row.groom_phone = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.groom_phone);
        }
      },
    },
    {
      title: "新郎生日",
      key: "groom_birthday",
      align: "center",
      width: 130,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.groom_birthday,
              placeholder: "新郎生日",
            },
            on: {
              "on-blur": (event) => {
                row.groom_birthday = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.groom_birthday);
        }
      },
    },
    {
      title: "新娘名字",
      key: "bride_name",
      align: "center",
      width: 120,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.bride_name,
              placeholder: "新娘名字",
            },
            on: {
              "on-blur": (event) => {
                row.bride_name = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.bride_name);
        }
      },
    },
    {
      title: "新娘手机号",
      key: "bride_phone",
      align: "center",
      width: 130,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.bride_phone,
              placeholder: "新娘手机号",
            },
            on: {
              "on-blur": (event) => {
                row.bride_phone = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.bride_phone);
        }
      },
    },
    {
      title: "新娘生日",
      key: "bride_birthday",
      align: "center",
      width: 130,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.bride_birthday,
              placeholder: "新娘生日",
            },
            on: {
              "on-blur": (event) => {
                row.bride_birthday = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.bride_birthday);
        }
      },
    },
    {
      title: "客户地址",
      key: "customer_addr",
      align: "center",
      width: 260,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.customer_addr,
              placeholder: "客户地址",
            },
            on: {
              "on-blur": (event) => {
                row.customer_addr = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.customer_addr);
        }
      },
    },
    {
      title: "套系名称",
      key: "series_name",
      align: "center",
      width: 260,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.series_name,
              placeholder: "套系名称",
            },
            on: {
              "on-blur": (event) => {
                row.series_name = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.series_name);
        }
      },
    },
    {
      title: "拍摄类型",
      key: "type_name",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.type_name,
              placeholder: "拍摄类型",
            },
            on: {
              "on-blur": (event) => {
                row.type_name = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.type_name);
        }
      },
    },
    {
      title: "已付金额",
      key: "amount_paid",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.amount_paid,
              placeholder: "已付金额",
            },
            on: {
              "on-blur": (event) => {
                row.amount_paid = event.target.value;
              },
            },
          });
        } else {
          return h("span", "￥" + row.amount_paid);
        }
      },
    },
    {
      title: "剩余金额",
      key: "remaining_amount",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.remaining_amount,
              placeholder: "剩余金额",
            },
            on: {
              "on-blur": (event) => {
                row.remaining_amount = event.target.value;
              },
            },
          });
        } else {
          return h("span", "￥" + row.remaining_amount);
        }
      },
    },
    {
      title: "客服人员",
      key: "customer_service",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.customer_service,
              placeholder: "客服人员",
            },
            on: {
              "on-blur": (event) => {
                row.customer_service = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.customer_service);
        }
      },
    },
    /* {
      title: "摄影师",
      key: "order_photographer",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.order_photographer,
              placeholder: "摄影师",
            },
            on: {
              "on-blur": (event) => {
                row.order_photographer = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.order_photographer);
        }
      },
    },
    {
      title: "化妆师",
      key: "order_cosmetician",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.order_cosmetician,
              placeholder: "化妆师",
            },
            on: {
              "on-blur": (event) => {
                row.order_cosmetician = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.order_cosmetician);
        }
      },
    }, */
    {
      title: "优惠券",
      key: "order_coupons",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.order_coupons,
              placeholder: "优惠券",
            },
            on: {
              "on-blur": (event) => {
                row.order_coupons = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.order_coupons);
        }
      },
    },
    {
      title: "是否配车",
      key: "add_car",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.add_car,
              placeholder: "是否配车",
            },
            on: {
              "on-blur": (event) => {
                row.add_car = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.add_car);
        }
      },
    },
    {
      title: "推荐人",
      key: "referrer",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.referrer,
              placeholder: "推荐人",
            },
            on: {
              "on-blur": (event) => {
                row.referrer = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.referrer);
        }
      },
    },
    {
      title: "客户来源",
      key: "customer_source",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.customer_source,
              placeholder: "客户来源",
            },
            on: {
              "on-blur": (event) => {
                row.customer_source = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.customer_source);
        }
      },
    },
    {
      title: "备注",
      key: "remarks",
      align: "center",
      width: 100,
      render: (h, { row, index }) => {
        if (row.editable) {
          return h("Input", {
            props: {
              type: "text",
              value: row.remarks,
              placeholder: "备注",
            },
            on: {
              "on-blur": (event) => {
                row.remarks = event.target.value;
              },
            },
          });
        } else {
          return h("span", row.remarks);
        }
      },
    },
    {
      title: "期望拍摄月份",
      key: "expected_shooting_month",
      width: 120,
    },
    {
      title: "创建时间",
      key: "creation_time",
      width: 180,
    },
    {
      title: "更新时间",
      key: "modified_time",
      width: 180,
    },
    {
      title: "操作",
      slot: "action",
      fixed: "right",
      align: "center",
      width: 140,
    },
]
export default list
